package com.treasure.mall.biz.service.core.pay;

import com.treasure.mall.biz.base.SearchableCrudService;
import com.treasure.mall.biz.entity.pay.PaymentBillPO;

import java.util.List;

/**
 * @author allan
 * @version 1.0.0
 * @date 2020/6/14
 */
public interface PaymentBillService extends SearchableCrudService<PaymentBillPO, String> {
    List<PaymentBillPO> findByOrder(String orderId);

    /**
     * 得到第三方支付的付款单
     *
     * @param orderId
     * @return
     */
    PaymentBillPO getThirdPayBill(String orderId);

    /**
     * 得到账户支付的付款单（比如余额，积分等）
     *
     * @param orderId
     * @return
     */
    List<PaymentBillPO> getUserPayBill(String orderId);

    /**
     * 得到余额支付单
     *
     * @param orderId
     * @return
     */
    PaymentBillPO getBalancePayBill(String orderId);
}
